<template>
  <div class="praise-mov" @click="gotoXq(item.id)">
    <div class="top">
      <!-- 图片 -->
      <img :src="`${item.img}`" alt="" />
      <span class="center11">
        <!-- 评分 -->
        <span class="c-center11">{{ item.wish }} </span>
        人想看
      </span>

      <div class="toggle-wish" >
        <span></span>
      </div>
    </div>
    <h5 class="name line-ellipsis">{{ item.nm }}</h5>
    <h5 class="date">{{item.comingTitle | getTime(item.comingTitle)}}</h5>
  </div>
</template>

<script>
export default {
  props: {
    item: Object,
  },

  data:function(){
    return{

   
   
    }
  },
   filters:{
   getTime(e){
      return e.substring(0,5);
     
    }
  },
   methods:{
        gotoXq(id) {
          console.log(id,444);
            this.$router.push("/info/"+id);
        }
    }
};
</script>

<style lang="less">
.praise-mov {
  display: inline-block;
  width: 85px;
  overflow: hidden;
  margin-right: 10px;

  .top {
    display: inline-block;
    position: relative;
    .toggle-wish {
    width: 28px;
    line-height: 28px;
    background: rgba(61,63,71,.6);
    text-align: center;
    border-bottom-right-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    span {
    background-image: url("../assets/notWish.png");
    display: inline-block;
    width: 10px;
    height: 10px;
    background-size: 100%;
    background-repeat: no-repeat;

}
}
    img {
      width: 85px;
      height: 115px;
    }
    .center11 {
      position: absolute;
    left: 4px;
    bottom: 6px;
    color: #faaf00;
    font-size: 12px;
    font-weight: 600;
    }
  }
  .name {
    font-size: 13px;
    color: #222;
    margin: 3px 0 3px;
  }
   .date {
    margin: 0;
    font-size: 12px;
    color: #999;
}
  .line-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}
</style>